package controller

import (
	"fmt"
	"poker/pb/proto/login"
	"poker/ws"

	"github.com/gogo/protobuf/proto"
)

// 快速开始 测试用
func QuickStart(r *ws.Request) {
	req := login.LoginReq{}
	proto.Unmarshal(r.ByteData, &req)
	fmt.Println("QuickStart data:", r.Seq, req)

	res := &login.LoginRes{
		Code: 200,
	}

	r.Send(res)
}
